export function showLoadingInterceptor(request, loadingStart, loadingFinish, responseError) {
  request.interceptors.request.use((config => {
    loadingStart()
    return config
  }), function (error) {
    return Promise.reject(error);
  });

  request.interceptors.response.use(response => {
    loadingFinish()
    return response
  }, function (error) {
    responseError()
    return Promise.reject(error);
  });
}
